package org.ielts.domain.log;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

import org.ielts.domain.base.SignCourse;

@Entity
@DiscriminatorValue("FinishCourse")
public class FinishCourseLog extends SchoolLog {
	public FinishCourseLog() {
		setLogType("FinishCourse");
	}

	@Override
	public String getLogType() {
		return "FinishCourse";
	}

	@ManyToOne(fetch = FetchType.EAGER)
	private SignCourse signCourse;

	public SignCourse getSignCourse() {
		return signCourse;
	}

	public void setSignCourse(SignCourse signCourse) {
		this.signCourse = signCourse;
	}
}
